from django.template import Library

from main.models import Category

register = Library()

@register.simple_tag
def get_category():
    return Category.objects.filter(parent__isnull=True)
